package me.jiatao.wan.data.database.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * @Author: JiaTao
 * @CreateDate: 2021/8/29 10:16
 * @Version: 1.0
 * @Description: 文章所属类别
 */

enum class ArticleType(val type: Int) {
    HOME(1),
    PROJECT(2),
    WECHAT(3)
}

/**
 * @Author: JiaTao
 * @CreateDate: 2021/8/29 10:16
 * @Version: 1.0
 * @Description: 文章实体类
 */

@Entity
data class ArticleEntity(
    @PrimaryKey
    val id: Int? = null,
    val articleId: Int,
    val author: String,
    val niceDate: String,
    val title: String,
    val envelopePic: String,
    val isTop: Boolean,
    val superChapterName: String,
    val chapterName: String,
    val isCollect: Boolean,
    val link: String,
    val articleType: ArticleType
)
